/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javafx179labs.nez.hr.util;

import javafx179labs.nez.hr.bean.Employe;

/**
 *
 * @author civil
 */
public class ByDepartmentId implements Filter {
    private final Integer Id;

    public ByDepartmentId(Integer Id) {
        this.Id = Id;
    }

    @Override
    public boolean filter(Object o) {
        return ((Employe) o).getDepartmentId() == Id;
    }
}
